﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.IO;
using System.Text;
public partial class StdRegister : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        AjaxPro.Utility.RegisterTypeForAjax(typeof(StdRegister));
        //StreamReader sr = new StreamReader("E:/3.txt", Encoding.GetEncoding("gb2312")); ;
        //string line = "";
        //string targetcontent = null;
        //while ((line = sr.ReadLine()) != null)
        //{
        //    if (line.Contains("</a>"))
        //    {
        //        int start = line.IndexOf('>') + 1;
        //        line = line.Substring(start);
        //        int end = line.IndexOf('<');
        //        line = line.Substring(0, end);

        //        line = "INSERT INTO [BookShare].[dbo].[dx_School] ([SchoolName],[DateCreated],[DateUpdated],[ProvinceID]) VALUES ('" + line + "',GETDATE(),GETDATE(),15)";
        //        targetcontent += line;

        //    }
        //}
        //File.WriteAllText("e:/4.txt", targetcontent);
        //sr.Close();
    }
    [AjaxPro.AjaxMethod]
    public string abc()
    {
        return "shit";
    }
}
